#pragma once

#include "2d/CCNode.h"
#include "ui/UIWidget.h"
#include "GLGlobalInfo.h"

class CCommonUiUtil
{
public:
	typedef std::vector<cocos2d::Node*>				VecNode_t;
public:
	CCommonUiUtil(void);
	~CCommonUiUtil(void);

	static cocos2d::ui::Widget* initItemPersonLook(VecNode_t& nodes, int32_t index, AnimalLookInfo* info);
	static cocos2d::ui::Widget* initItemSkill(VecNode_t& nodes, int32_t index, SkillInfo* info);

	static cocos2d::Node* cacheListNode(VecNode_t& nodes, int32_t index, const char* resource);
	static void cacheListNodeFree(VecNode_t& nodes);
};

